﻿<%@ Page Title="" Language="C#" MasterPageFile="~/car-insurance/proposalforms/CarInsuranceProposalMasterPage.master" 
    Async="true" AutoEventWireup="true" CodeFile="tms_proposal_form.aspx.cs" Inherits="car_insurance_proposalforms_tms_proposal_form" %>

<%@ Register Src="~/controls/usrNoJS.ascx" TagName="usrNoJS" TagPrefix="ucNoJS" %>
<%@ Register Src="~/controls/usrMobilePhone.ascx" TagName="usrPhoneNo" TagPrefix="uc1" %>
<%@ Register Src="~/controls/usrDate.ascx" TagName="usrDate" TagPrefix="uc2" %>
<%@ Register Src="~/controls/usrIdNumber.ascx" TagName="usrIdNumber" TagPrefix="uc3" %>
<%@ Register Src="~/controls/usrNationality.ascx" TagName="usrNationality" TagPrefix="uc4" %>
<%@ Register Src="~/controls/usrIdType.ascx" TagName="usrIdType" TagPrefix="uc5" %>
<%@ Register Src="~/controls/usrCompanyLogoByServices.ascx" TagName="usrCompanyLogoByServices" TagPrefix="uc6" %>
<%@ Register Src="~/controls/usrIdType.ascx" TagName="usrIdType" TagPrefix="uc7" %>
<%@ Register Src="~/controls/usrSalutation.ascx" TagName="usrSalutation" TagPrefix="uc8" %>
<%@ Register Src="~/controls/usrGender.ascx" TagName="usrGender" TagPrefix="uc9" %>
<%@ Register Src="~/controls/usrOccupation.ascx" TagName="usrOccupation" TagPrefix="uc10" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">

    <script src="/includes/cx_jquery_post_code.js" type="text/javascript"></script>

    <script src="/includes/PostCode.js" type="text/javascript"></script>

    <script src="/controls/CE_Date.js" type="text/javascript"></script>

    <script src="/controls/IdNumber.js" type="text/javascript"></script>

    <script src="/includes/ValidationError-NEW.js" type="text/javascript"></script>

    <script src="/includes/ValidationEffect-NEW.js" type="text/javascript"></script>

    <script src="/includes/LoadingProgress.js" type="text/javascript"></script>

    <div id="container">
        <div id="nav_top">
            <div class="left pad_8yr">
                <asp:HyperLink ID="hplTopBack" runat="server" onclick="if(confirm('Are you sure to go back?')){history.back();return false;}"  ImageUrl="<%$Resources:ImageResource,BackProposalButton%>"></asp:HyperLink>
                <asp:HyperLink ID="hplTopCancel" runat="server" onclick="return confirm('Are you sure to Cancel?');"
                    NavigateUrl="~/user/logout.aspx" ImageUrl="<%$Resources:ImageResource,CancelProposalButton%>"></asp:HyperLink><%--NavigateUrl="../quote-results.aspx"--%>
            </div>
            <div class="right pad_8yr">
                <img src="/images/forms_proposal/nav/logo_comparexpress.png" alt="GluayGluay.com" /></div>
        </div>
        <ucNoJS:usrNoJS ID="usrNoJS1" runat="server" />
        <div class="form_selection" style="display: none">
            <h3>
                <asp:Label ID="lblProvider" runat="server"></asp:Label></h3>
            <asp:Label ID="lblPackageHead" runat="server" Text="WorkShop Plan : " CssClass="fs_lbl"></asp:Label>
            <asp:Label ID="lblPackage" runat="server" CssClass="fs_lbl_m"></asp:Label>
            <asp:Label ID="lblPremiumHead" runat="server" Text="Annual Premium : " CssClass="fs_lbl_r"></asp:Label>
            <asp:Label ID="lblPremium" runat="server"></asp:Label>
        </div>
        <div id="divLoading">
            <table style="width: 100%; height: 500px">
                <tr>
                    <td align="center" valign="middle">
                        <img src="/images/loader/loader_main.gif" alt="Loading" align="absmiddle" />
                        <span id="divMessage">Please wait...</span><span id="divPgrPercent">0%</span>
                    </td>
                </tr>
            </table>
        </div>
        <asp:ScriptManager ID="ScriptManager1" EnablePartialRendering="true" runat="server">
        </asp:ScriptManager>
        <div runat="server" id="divAgentRequest" visible="false">
            Agent ID :<asp:Label ID="lblAgentId" runat="server" />
            Car ID :<asp:Label ID="lblCarId" runat="server" />
            Customer ID:
            <asp:Label ID="lblCustomerId" runat="server" />
            Car Result ID :<asp:Label ID="lblCarResultId" runat="server" />
            Provider Company ID :<asp:Label ID="lblProviderCompanyId" runat="server" />
            Car More Detail ID:<asp:Label ID="lblCarMoreDetailId" runat="server" />
            Customer Name:<asp:Label ID="lblCustomerGivenName" runat="server" />
            Mobile No:<asp:Label ID="lblCustomerMobileNo" runat="server" />
        </div>        
        <div id="divContent" style="display: none;">
            <div id="contentBody">
                <div id="header">
                    <div class="seperator">
                    </div>
                    <div class="right" style="width: 240px">
                        <div class="quotesum_button">
                            <asp:Image ID="imgView" runat="server" alt="Quote Summary" ImageUrl="<%$Resources:ImageResource,ViewQuoteSummary%>"
                                Width="246" /></div>
                    </div>
                    <div>
                        <ul id="stp_menu">
                            <li class="stp1_r"><a id="hplStep1">
                                <span class="active_r"><%=GetGlobalResourceObject("Menu", "StepGetQuote")%></span></a></li>
                            <li class="stp2_r"><a id="hplStep2">
                                <span class="active_r"><%=GetGlobalResourceObject("Menu", "StepQuoteResults")%></span></a></li>
                            <li class="stp3_r"><a id="hplStep3">
                                <span class="active_r"><%=GetGlobalResourceObject("Menu", "StepBuyOnline")%></span></a></li>
                        </ul>
                    </div>
                    <h1>
                        <%=GetGlobalResourceObject("ProposalForm","AppFormHeader") %></h1>
                    <div id="divAgent" style="font-size: small; font-weight: bold" runat="server" visible="false">
                        <br />
                        Agent Name :
                        <asp:Label runat="server" ID="lblAgentName" />
                        <asp:HyperLink runat="server" onclick="return confirm('Are you confirm?');" ID="hplLogout" Text="Sign Out" NavigateUrl="~/user/logout.aspx" />
                    </div>                        
                    <div class="seperator">
                    </div>
                    <div class="quotesum">
                        <div class="top">
                        </div>
                        <div id="divQuoteSummery" class="body pad_15x">
                            <!-- QUOTE SUMMARY | Start -->
                            <div class="w26per left pad_25xr">
                                <h1><asp:Label ID="lblInsurance" Text="<%$ Resources:ProposalForm,SelectedInsurer%>" runat="server"></asp:Label></h1>
                                <p>
                                    <asp:Label ID="lblSelectInsurer" runat="server"></asp:Label></p>
                                <h1><asp:Label ID="lblPackageName" Text="<%$ Resources:ProposalForm,Package%>" runat="server"></asp:Label></h1>
                                <p>
                                    <asp:Label ID="lblPackages" runat="server"></asp:Label></p>
                                <h1>
                                    <%=GetGlobalResourceObject("ProposalForm", "CarMakeModel")%></h1>
                                <p>
                                    <asp:Label ID="lblCarMakemodel" runat="server"></asp:Label></p>
                            </div>
                            <div class="w21per left pad_25xr">
                                <h1>
                                    <%=GetGlobalResourceObject("ProposalForm", "CarModelYear")%></h1>
                                <p>
                                    <asp:Label ID="lblCarModelYear" runat="server"></asp:Label></p>
                                <h1>
                                    <%=GetGlobalResourceObject("ProposalForm", "SumInsured")%></h1>
                                <p>
                                    <asp:Label ID="lblSumInsured" runat="server"></asp:Label></p>
                                <h1>
                                    <%=GetGlobalResourceObject("ProposalForm", "Premium")%></h1>
                                <p>
                                    <asp:Label ID="lblPremiums" runat="server"></asp:Label>
                                </p>
                                    <div style="display:none;">
                                        <asp:TextBox ID="txtPremium" runat="server"></asp:TextBox>
                                        <asp:TextBox ID="txtIsIncludeCMI" runat="server" Text="0"></asp:TextBox>
                                    </div>
                            </div>
                            <div class="w21per left pad_25xr">
                                <h1>
                                    <%=GetGlobalResourceObject("ProposalForm", "CoverCommencementDate")%></h1>
                                <p>
                                    <asp:Label ID="lblCommencementdate" runat="server"></asp:Label></p>
                                <h1>
                                    <%=GetGlobalResourceObject("ProposalForm", "QuoteReferenceNumber")%></h1>
                                <p>
                                    <asp:Label ID="lblQRefNo" runat="server"></asp:Label></p>
                                <h1>
                                    <%=GetGlobalResourceObject("ProposalForm", "Promotion")%></h1>
                                <p>
                                    <asp:Label ID="lblPromotion" runat="server"></asp:Label></p>                                       
                            </div>
                            <div class="w21per left pad_25xr">
                                <h1>
                                    &nbsp;</h1>
                                <p>
                                    &nbsp;</p>
                                <div style="display: none;">
                                    <h1>
                                        <%=GetGlobalResourceObject("ProposalForm", "NCB")%></h1>
                                    <p>
                                        <asp:Label ID="lblNCB" runat="server"></asp:Label></p>
                                    <h1>
                                        Red Plate?</h1>
                                    <p>
                                        <asp:Label ID="lblRedPlate" runat="server"></asp:Label></p>                                
                                    <h1>
                                        CTPL</h1>
                                    <p>
                                        <asp:Label ID="lblCTPL" runat="server"></asp:Label></p>
                                    <h1>
                                        Current/Existing NCD</h1>
                                    <p>
                                        <asp:Label ID="lblNCDvalue" runat="server"></asp:Label></p>
                                    <h1>
                                        Any Claims in the Last 3 Years?</h1>
                                    <p>
                                        <asp:Label ID="lblAnyclaim" runat="server"></asp:Label></p>
                                    <h1>
                                        Add Additional Name Driver</h1>
                                    <p>
                                        <asp:Label ID="lblAddDriver" runat="server"></asp:Label>
                                        <span style="display: none;">
                                            <asp:TextBox ID="txtDriverCount" runat="server" Text="0"></asp:TextBox>
                                        </span>
                                    </p>
                                    <h1>
                                        Year of Manufacture</h1>
                                    <p>
                                        <asp:Label ID="lblYrofManufacture" runat="server"></asp:Label></p>
                                </div>
                            </div>
                            <!-- QUOTE SUMMARY | End   -->
                        </div>
                        <div class="bottom">
                        </div>
                    </div>
                </div>
                <div class="seperator">
                </div>
                <div id="body">
                </div>
                <div id="divValidationSummary">
                    <asp:ValidationSummary ID="vsproposal" CssClass="validation_div" runat="server" ValidationGroup="proposal"
                        HeaderText="<%$ Resources:Menu,RequiredValidation%>" />
                </div>
                
                <div class="form">
                    <div class="top">
                        <div class="left">
                            <div class="pad_10t pad_35xl white">
                                <%=GetGlobalResourceObject("ProposalForm","AppFormHeader") %></div>
                        </div>
                        <div class="right">
                        </div>
                    </div>
                    <div class="body">
                        <div class="inner">
                            <div class="pad_20x10y">
                                <div class="norm">
                                    <div class="top_t">
                                    </div>
                                    <div class="body">
                                        <div class="pad_15x">
                                            <h1><%=GetGlobalResourceObject("ProposalForm", "ImportantDisclaimer")%></h1>
                                            <p><asp:Label runat="server" ID="lblDisclaimerHeader" Text="<%$ Resources:CarInsuranceProposal,TMSCIHeader%>"></asp:Label></p>
                                            <p><asp:Label runat="server" ID="lblDisclaimer" Text="<%$ Resources:CarInsuranceProposal,TMSCIMessage%>"></asp:Label></p>
                                            <br />
                                            <p><asp:Label runat="server" ID="lblPaymentMessageHeader" Text="<%$ Resources:CarInsuranceProposal,CIPaymentMessageHeader%>"></asp:Label>:</p>
                                            <p><asp:Label runat="server" ID="lblPaymentMessage1" Text="<%$ Resources:CarInsuranceProposal,CIPaymentMessage1%>"></asp:Label></p>
                                            <p><asp:Label runat="server" ID="lblPaymentMessage2" Text="<%$ Resources:CarInsuranceProposal,CIPaymentMessage2%>"></asp:Label></p>
                                        </div>
                                    </div>
                                    <div class="bottom">
                                    </div>
                                </div>

                                <script type="text/javascript">
                                    IncreaseProgress(20);
                                </script>
                                <div class="seperator">
                                </div>
                                <div class="hilite">
                                    <div class="top">
                                    </div>
                                    <div class="body_in pad_15x">
                                        <h1>
                                            <%=GetGlobalResourceObject("ProposalForm", "ProposerParticulars")%></h1>
                                        <div class="seperator">
                                        </div>
                                        <div class="w43per left">
                                            <div id="divName">
                                                <div class="w180 left align_right pad_6t pad_7xr">
                                                    <span class="red">*</span>
                                                    <%=GetGlobalResourceObject("ProposalForm","Name") %>:</div>
                                                <div class="left">
                                                    <asp:TextBox ID="txtName" MaxLength="50" runat="server" size="25"></asp:TextBox>&nbsp;
                                                    <asp:RequiredFieldValidator ID="rfvName" runat="server" CssClass="validationErrorControl"
                                                        ErrorMessage="" ValidationGroup="proposal" ControlToValidate="txtName"></asp:RequiredFieldValidator>
                                                    <asp:RegularExpressionValidator ID="revName" runat="server" ControlToValidate="txtName"
                                                        ValidationExpression="^([\u0000-\uDFFF']{1,50})$|^([a-zA-Z''-'\s]{1,50})$" ValidationGroup="proposal" CssClass="validationErrorControl"
                                                        Text="" ErrorMessage=""></asp:RegularExpressionValidator>
                                                </div>
                                            </div>
                                            <div class="h10">
                                            </div>
                                            <div id="div4">
                                                <div class="w180 left align_right pad_6t pad_7xr">
                                                    <span class="red">*</span>
                                                    <%=GetGlobalResourceObject("ProposalForm", "IdentificationNo")%>:</div>
                                                <div class="left">
                                                    <asp:TextBox ID="txtIdentificationNo" MaxLength="13" runat="server" size="20"></asp:TextBox>&nbsp;
                                                    <asp:RequiredFieldValidator ID="rfvIdentificationNo" runat="server" CssClass="validationErrorControl"
                                                        ErrorMessage="" ValidationGroup="proposal" ControlToValidate="txtIdentificationNo"></asp:RequiredFieldValidator>
                                                    <asp:RegularExpressionValidator ID="revIdentificationNo" runat="server" ControlToValidate="txtIdentificationNo"
                                                        ValidationExpression="^([\u0000-\uDFFF']{1,50})$|^([a-zA-Z''-'\s]{1,50})$" ValidationGroup="proposal"
                                                        CssClass="validationErrorControl" Text="" ErrorMessage=""></asp:RegularExpressionValidator>
                                                </div>
                                            </div>
                                            <div class="h10">
                                            </div>
                                            <div id="divOccupation">
                                                <div class="w180 left align_right pad_6t pad_7xr">
                                                    <span class="red">*</span>
                                                    <%=GetGlobalResourceObject("ProposalForm","Occupation") %>:</div>
                                                <div class="left">
                                                    <uc10:usrOccupation ID="ddlOccupation" Width="180" runat="server" IsEnabled="true"
                                                        ValidationGroup="proposal" ErrorMessage="" />
                                                </div>
                                            </div>
                                            <div class="h10">
                                            </div>
                                            <div id="divContact">
                                                <div class="w180 left align_right pad_6t pad_7xr">
                                                    <span class="red">*</span>
                                                    <%=GetGlobalResourceObject("ProposalForm", "ContactNumber")%>:</div>
                                                <div class="left">
                                                    <uc1:usrPhoneNo ID="txtContactNo" IsEnabled="true" IsRequired="true" PhoneNoRequireErrorMessage="Require mobile number."
                                                        PhoneNoErrorMessage="Mobile phone number should 8 digits." PhoneNoValidErrorMessage="Invalid mobile phone number."
                                                        runat="server" ValidationGroup="proposal" />
                                                </div>
                                            </div>
                                            <div class="h10">
                                            </div>
                                            <div id="div1">
                                                <div class="w180 left align_right pad_6t pad_7xr">
                                                    <span class="red"></span>
                                                    <%=GetGlobalResourceObject("ProposalForm", "HomeOfficeNumber")%>:</div>
                                                <div class="left">
                                                        <asp:TextBox ID="txtHomeOfficeNo" runat="server" MaxLength="11" size="25"></asp:TextBox>
                                                </div>
                                            </div>
                                            <div class="h10">
                                            </div>
                                            <div id="div5">
                                                <div class="w180 left align_right pad_6t pad_7xr">
                                                    <span class="red">*</span>
                                                    <%=GetGlobalResourceObject("ProposalForm", "Beneficiary")%>:</div>
                                                <div class="left">
                                                    <asp:TextBox ID="txtBeneficiaryName" MaxLength="50" runat="server" size="25"></asp:TextBox>&nbsp;
                                                    <asp:RequiredFieldValidator ID="rfvBeneficiaryName" runat="server" CssClass="validationErrorControl"
                                                        ErrorMessage="" ValidationGroup="proposal" ControlToValidate="txtBeneficiaryName"></asp:RequiredFieldValidator>
                                                    <asp:RegularExpressionValidator ID="revBeneficiaryName" runat="server" ControlToValidate="txtBeneficiaryName"
                                                        ValidationExpression="^([\u0000-\uDFFF']{1,50})$|^([a-zA-Z''-'\s]{1,50})$" ValidationGroup="proposal" CssClass="validationErrorControl"
                                                        Text="" ErrorMessage=""></asp:RegularExpressionValidator>
                                                </div>
                                            </div>
                                            <div class="h10">
                                            </div>
                                            <div id="divCarPlate">
                                                <div class="w180 left align_right pad_6t pad_7xr">
                                                    <span class="red">*</span>
                                                    <%=GetGlobalResourceObject("ProposalForm", "CarPlate")%>:</div>
                                                <div class="left">
                                                    <asp:TextBox ID="txtCarPlate" MaxLength="50" runat="server" size="25"></asp:TextBox>&nbsp;
                                                    <asp:RequiredFieldValidator ID="rfvCarPlate" runat="server" CssClass="validationErrorControl"
                                                        ErrorMessage="" ValidationGroup="proposal" ControlToValidate="txtCarPlate"></asp:RequiredFieldValidator>
                                                </div>
                                            </div>
                                            <div class="h10">
                                            </div>
                                            <div id="divLicenseNo">
                                                <div class="w180 left align_right pad_6t pad_7xr">
                                                    <span class="red">*</span>
                                                    <%=GetGlobalResourceObject("ProposalForm", "CarPlateProvince")%>:</div>
                                                <div class="left">
                                                    <asp:TextBox ID="txtCarPlateProvince" MaxLength="50" runat="server" size="25"></asp:TextBox>&nbsp;
                                                    <asp:RequiredFieldValidator ID="rfvCarPlateProvince" runat="server" CssClass="validationErrorControl"
                                                        ErrorMessage="" ValidationGroup="proposal" ControlToValidate="txtCarPlateProvince"></asp:RequiredFieldValidator>
                                                </div>
                                            </div>
                                            <div class="h10">
                                            </div>
                                        </div>
                                        <div class="w54per left">       
                                            <div id="divEngine" style="display:none;">
                                                <div class="w180 left align_right pad_6t pad_7xr">
                                                    <span class="red"></span>
                                                    <%=GetGlobalResourceObject("ProposalForm", "EngineNumber")%>:</div>
                                                <div class="left">
                                                    <asp:TextBox ID="txtEngineNumber" MaxLength="50" runat="server" size="25"></asp:TextBox>&nbsp;

                                                </div>
                                            </div>
                                            <div id="divChassis" style="display:none;">
                                                <div class="w180 left align_right pad_6t pad_7xr">
                                                    <span class="red"></span>
                                                    <%=GetGlobalResourceObject("ProposalForm", "ChassisNumber")%>:</div>
                                                <div class="left">
                                                    <asp:TextBox ID="txtChassisNumber" MaxLength="50" runat="server" size="25"></asp:TextBox>&nbsp;

                                                </div>
                                            </div>
                                            <div class="groupwrap">
                                                <div class="h10"></div>                                                                          
                                                <div id="PresentAddress">
                                                    <div class="w180 left align_right pad_6t pad_7xr">
                                                        <span class="red">*</span>
                                                        <%=GetGlobalResourceObject("ProposalForm", "PresentAddress")%>:</div>
                                                    <div class="left">
                                                        <asp:TextBox ID="txtPresentAddress" MaxLength="350" runat="server" size="25" Width="250"
                                                            Height="60" TextMode="MultiLine"></asp:TextBox>&nbsp;
                                                        <asp:RequiredFieldValidator ID="rfvPresentAddress" runat="server" CssClass="validationErrorControl"
                                                            ErrorMessage="" ValidationGroup="proposal" ControlToValidate="txtPresentAddress"></asp:RequiredFieldValidator>
                                                    </div>
                                                </div>
                                                <div class="h10">
                                                </div>
                                                <div id="div8">
                                                    <div class="w180 left align_right pad_6t pad_7xr">
                                                        <span class="red">*</span>
                                                        <%=GetGlobalResourceObject("ProposalForm", "SubDistrict")%>:</div>
                                                    <div class="left">
                                                        <asp:TextBox ID="txtSubDistrict" MaxLength="50" runat="server" size="25"></asp:TextBox>&nbsp;
                                                        <asp:RequiredFieldValidator ID="rfvSubDistrict" runat="server" CssClass="validationErrorControl"
                                                            ErrorMessage="" ValidationGroup="proposal" ControlToValidate="txtSubDistrict"></asp:RequiredFieldValidator>
                                                    </div>
                                                </div>                                            
                                                <div class="h10">
                                                </div>
                                                <div id="div8">
                                                    <div class="w180 left align_right pad_6t pad_7xr">
                                                        <span class="red">*</span>
                                                        <%=GetGlobalResourceObject("ProposalForm", "District")%>:</div>
                                                    <div class="left">
                                                        <asp:TextBox ID="txtDistrict" MaxLength="50" runat="server" size="25"></asp:TextBox>&nbsp;
                                                        <asp:RequiredFieldValidator ID="rfvDistrict" runat="server" CssClass="validationErrorControl"
                                                            ErrorMessage="" ValidationGroup="proposal" ControlToValidate="txtDistrict"></asp:RequiredFieldValidator>
                                                    </div>
                                                </div>
                                                <div class="h10">
                                                </div>
                                                <div id="div9">
                                                    <div class="w180 left align_right pad_6t pad_7xr">
                                                        <span class="red">*</span>
                                                        <%=GetGlobalResourceObject("ProposalForm", "Province")%>:</div>
                                                    <div class="left">
                                                        <asp:TextBox ID="txtProvince" MaxLength="50" runat="server" size="25"></asp:TextBox>&nbsp;
                                                        <asp:RequiredFieldValidator ID="rfvProvince" runat="server" CssClass="validationErrorControl"
                                                            ErrorMessage="" ValidationGroup="proposal" ControlToValidate="txtProvince"></asp:RequiredFieldValidator>
                                                    </div>
                                                </div>
                                                <div class="h10">
                                                </div>
                                                <div id="div10">
                                                    <div class="w180 left align_right pad_6t pad_7xr">
                                                        <span class="red">*</span>
                                                        <%=GetGlobalResourceObject("ProposalForm", "PostalCode")%>:</div>
                                                    <div class="left">
                                                        <asp:TextBox ID="txtPostalCode" MaxLength="5" runat="server" size="15"></asp:TextBox>&nbsp;
                                                        <asp:RequiredFieldValidator ID="rfvPostalCode" runat="server" CssClass="validationErrorControl"
                                                            ErrorMessage="" ValidationGroup="proposal" ControlToValidate="txtPostalCode"></asp:RequiredFieldValidator>
                                                        <asp:RegularExpressionValidator ID="revPostalCode" runat="server" ControlToValidate="txtPostalCode"
                                                            ValidationExpression="[0-9]{5}" Display="Dynamic" ValidationGroup="proposal" CssClass="validationErrorControl"
                                                            Text="" ErrorMessage=""></asp:RegularExpressionValidator>
                                                    </div>
                                                </div>
                                                <div class="h10"></div>
                                            </div>
                                        </div>
                                        <div class="seperator">
                                        </div>
                                        <asp:UpdatePanel ID="upCheckMailing" EnableViewState="true" runat="server"> 
                                        <ContentTemplate>                                       
                                        <div class="left">
                                            <div class="left" id="divCheckMailingAddress" >
                                                <%--<asp:CheckBox ID="chkIsMailingAddress" onclick="CheckedMailingAddress();" runat="server" checked="true" />--%>
                                                <span><b>
                                                    <%=GetGlobalResourceObject("ProposalForm", "IsMailingAddress")%></b></span>
                                                &nbsp;
                                                    <span>
                                                        <asp:RadioButton ID="rdoMailingAddressYes" runat="server" GroupName="mailingaddress" AutoPostBack ="true" OnCheckedChanged="rdoMailingAddress_CheckedChanged" Checked="true"/>
                                                        &nbsp;<asp:Label ID="lblMailingAddressYes" runat="server" Text="<%$ Resources:ProposalForm,Yes%>"></asp:Label>
                                                    </span><span>&nbsp;&nbsp;</span> 
                                                    <span>
                                                        <asp:RadioButton ID="rdoMailingAddressNo" runat="server" GroupName="mailingaddress" AutoPostBack ="true" OnCheckedChanged="rdoMailingAddress_CheckedChanged"/>
                                                        &nbsp;<asp:Label ID="lblMailingAddressNo" runat="server" Text="<%$ Resources:ProposalForm,No%>"></asp:Label>
                                                    </span>
                                            </div>                                                                                    
                                        </div>
                                        </ContentTemplate>
                                        </asp:UpdatePanel>
                                        
                                        <asp:UpdatePanel ID="upMailingAddress" EnableViewState="true" runat="server"> 
                                        <ContentTemplate>  
                                        <asp:Panel ID="pnlMailingAddress" runat="server" Width="100%" Visible="false">                                            
                                       
                                        <div class="seperator">
                                        </div>
                                        <div class="w43per left">&nbsp;</div>
                                        <div class="w54per left" id="divMailingAddress">
                                            <div class="groupwrap">
                                                <div class="h10"></div>
                                                <div id="MailingAddress">
                                                    <div class="w180 left align_right pad_6t pad_7xr">
                                                        <span class="red">*</span>
                                                        <%=GetGlobalResourceObject("ProposalForm", "MailingAddress")%>:</div>
                                                    <div>
                                                        <asp:TextBox ID="txtMailingAddress" MaxLength="350" runat="server" size="25" Width="250"
                                                            Height="60" TextMode="MultiLine"></asp:TextBox>&nbsp;
                                                        <asp:RequiredFieldValidator ID="rfvMailingAddress" runat="server" CssClass="validationErrorControl"
                                                            ErrorMessage="" ValidationGroup="proposal" ControlToValidate="txtMailingAddress"></asp:RequiredFieldValidator>
                                                    </div>
                                                </div>
                                                <div class="h10"></div>
                                                <div id="div11">
                                                    <div class="w180 left align_right pad_6t pad_7xr">
                                                        <span class="red">*</span>
                                                        <%=GetGlobalResourceObject("ProposalForm", "SubDistrict")%>:</div>
                                                    <div class="left">
                                                        <asp:TextBox ID="txtMailingSubDistrict" MaxLength="50" runat="server" size="25"></asp:TextBox>&nbsp;
                                                        <asp:RequiredFieldValidator ID="rfvMailingSubDistrict" runat="server" CssClass="validationErrorControl"
                                                            ErrorMessage="" ValidationGroup="proposal" ControlToValidate="txtMailingSubDistrict"></asp:RequiredFieldValidator>
                                                    </div>
                                                </div>
                                                <div class="h10">
                                                </div>
                                                <div id="div12">
                                                    <div class="w180 left align_right pad_6t pad_7xr">
                                                        <span class="red">*</span>
                                                        <%=GetGlobalResourceObject("ProposalForm", "District")%>:</div>
                                                    <div class="left">
                                                        <asp:TextBox ID="txtMailingDistrict" MaxLength="50" runat="server" size="25"></asp:TextBox>&nbsp;
                                                        <asp:RequiredFieldValidator ID="rfvMailingDistrict" runat="server" CssClass="validationErrorControl"
                                                            ErrorMessage="" ValidationGroup="proposal" ControlToValidate="txtMailingDistrict"></asp:RequiredFieldValidator>
                                                    </div>
                                                </div>
                                                <div class="h10">
                                                </div>
                                                <div id="div13">
                                                    <div class="w180 left align_right pad_6t pad_7xr">
                                                        <span class="red">*</span>
                                                        <%=GetGlobalResourceObject("ProposalForm", "Province")%>:</div>
                                                    <div class="left">
                                                        <asp:TextBox ID="txtMailingProvince" MaxLength="50" runat="server" size="25"></asp:TextBox>&nbsp;
                                                        <asp:RequiredFieldValidator ID="rfvMailingProvince" runat="server" CssClass="validationErrorControl"
                                                            ErrorMessage="" ValidationGroup="proposal" ControlToValidate="txtMailingProvince"></asp:RequiredFieldValidator>
                                                    </div>
                                                </div>
                                                <div class="h10">
                                                </div>
                                                <div id="div14">
                                                    <div class="w180 left align_right pad_6t pad_7xr">
                                                        <span class="red">*</span>
                                                        <%=GetGlobalResourceObject("ProposalForm", "PostalCode")%>:</div>
                                                    <div class="left">
                                                        <asp:TextBox ID="txtMailingPostalCode" MaxLength="5" runat="server" size="15"></asp:TextBox>&nbsp;
                                                        <asp:RequiredFieldValidator ID="rfvMailingPostalCode" runat="server" CssClass="validationErrorControl"
                                                            ErrorMessage="" ValidationGroup="proposal" ControlToValidate="txtMailingPostalCode"></asp:RequiredFieldValidator>
                                                        <asp:RegularExpressionValidator ID="revMailingPostalCode" runat="server" ControlToValidate="txtMailingPostalCode"
                                                            ValidationExpression="[0-9]{5}" Display="Dynamic" ValidationGroup="proposal"
                                                            CssClass="validationErrorControl" Text="" ErrorMessage=""></asp:RegularExpressionValidator>
                                                    </div>
                                                </div>
                                                <div class="h10"></div>
                                            </div>
                                        </div>
                                        </asp:Panel>
                                        </ContentTemplate>
                                        </asp:UpdatePanel>
                                        <div class="seperator">
                                        </div>                                            
                                        <div class="w43per left">
                                            <div class="left" id="divBuyCTPLCheck">
                                                <asp:CheckBox ID="chkBuyCTPL" onclick="CheckedChanged();" runat="server" Text="" />
                                                <span><b>
                                                    <%=GetGlobalResourceObject("ProposalForm", "CIAct")%></b></span>
                                                <div style="display: none">
                                                    <asp:TextBox ID="txtBuyCTPL" runat="server" />
                                                </div>
                                            </div>
                                        </div>
                                        <div class="w56per left">
                                            <div id="divBuyCTPL" style="display: none;">
                                                <div class="w180 left align_right pad_7xr ">
                                                    <span class="red"></span>
                                                    <%=GetGlobalResourceObject("ProposalForm", "CTPLAmount")%>:</div>
                                                <div class="left">
                                                    &nbsp; <strong>
                                                        <asp:Label ID="lblCTPLAmount" runat="server"></asp:Label></strong></div>
                                                <div style="display: none;">
                                                    <asp:TextBox ID="txtCTPL" runat="server" size="15" ReadOnly="true"></asp:TextBox>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="bottom"></div>
                                    <script type="text/javascript">
                                        IncreaseProgress(35);
                                    </script>
                                </div>
                                <div class="seperator">
                                </div>
                                <asp:Panel ID="pnlDriverDetails" runat="server" Width="100%">
                                    <div class="hilite">
                                        <div class="top">
                                        </div>
                                        <div class="body_in pad_15x">
                                            <div id="divDrivers">
                                                <h1>
                                                    <%=GetGlobalResourceObject("ProposalForm", "DriverDetails")%></h1>
                                            </div>
                                            <asp:Panel ID="pnlDriver1" runat="server" Width="100%">
                                                <div class="seperator">
                                                </div>
                                                <div>
                                                    <h3>
                                                        <asp:Label ID="lblDriverNo1" runat="server" Text="<%$ Resources:ProposalForm,DriverNo1%>"></asp:Label>
                                                        <asp:Label ID="lblDriverId1" Visible="false" runat="server"></asp:Label></h3>
                                                    <div class="h10">
                                                    </div>
                                                    <div class="w43per left">
                                                        <div>
                                                            <div class="w180 left align_right pad_6t pad_7xr">
                                                                <span class="red">*</span>
                                                                <%=GetGlobalResourceObject("ProposalForm", "Surname")%>:</div>
                                                            <div class="left">
                                                                <asp:TextBox ID="txtDriverSurName1" MaxLength="50" runat="server" size="25"></asp:TextBox>
                                                                <asp:RequiredFieldValidator CssClass="validationErrorControl" ID="rfvDriverSurName1"
                                                                    ValidationGroup="proposal" runat="server" ControlToValidate="txtDriverSurName1"
                                                                    ErrorMessage=""></asp:RequiredFieldValidator>
                                                            </div>
                                                        </div>
                                                        <div class="h10">
                                                        </div>
                                                        <div>
                                                            <div class="w180 left align_right pad_6t pad_7xr">
                                                                <%=GetGlobalResourceObject("ProposalForm", "GivenName")%>:</div>
                                                            <div class="left">
                                                                <asp:TextBox ID="txtDriverGivenName1" MaxLength="50" runat="server" size="25"></asp:TextBox>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div class="w56per left">
                                                        <div>
                                                            <div class="w180 left align_right pad_6t pad_7xr">
                                                                <%=GetGlobalResourceObject("ProposalForm", "DriverDOB")%>:</div>
                                                            <div class="left pad_6t">
                                                                <uc2:usrDate ID="ddlDriverDOB1" ErrorMessage="" runat="server">
                                                                </uc2:usrDate>
                                                            </div>
                                                        </div>
                                                        <div class="h10"></div>
                                                        <div id="div2">
                                                            <div class="w180 left align_right pad_6t pad_7xr">
                                                                <span class="red"></span>
                                                                <%=GetGlobalResourceObject("ProposalForm", "LicenseNumber")%>:</div>
                                                            <div class="left">
                                                                <asp:TextBox ID="txtDrivingLicenseNumber1" MaxLength="50" runat="server" size="25"></asp:TextBox>
                                                            </div>
                                                        </div>
                                                        <div class="clear">
                                                        </div>
                                                    </div>
                                                </div>
                                            </asp:Panel>
                                            <asp:Panel ID="pnlDriver2" runat="server" Width="100%">
                                                <div class="seperator">
                                                </div>
                                                <div>
                                                    <h3>
                                                        <asp:Label ID="lblDriverNo2" runat="server" Text="<%$ Resources:ProposalForm,DriverNo2%>"></asp:Label>
                                                        <asp:Label ID="lblDriverId2" Visible="false" runat="server"></asp:Label></h3>
                                                    <div class="h10">
                                                    </div>
                                                    <div class="w43per left">
                                                        <div>
                                                            <div class="w180 left align_right pad_6t pad_7xr">
                                                                <span class="red">*</span>
                                                                <%=GetGlobalResourceObject("ProposalForm", "Surname")%>:</div>
                                                            <div class="left">
                                                                <asp:TextBox ID="txtDriverSurName2" MaxLength="50" runat="server" size="25"></asp:TextBox>
                                                                <asp:RequiredFieldValidator CssClass="validationErrorControl" ID="rfvDriverSurName2"
                                                                    ValidationGroup="proposal" runat="server" ControlToValidate="txtDriverSurName2"
                                                                    ErrorMessage=""></asp:RequiredFieldValidator>
                                                            </div>
                                                        </div>
                                                        <div class="h10">
                                                        </div>
                                                        <div>
                                                            <div class="w180 left align_right pad_6t pad_7xr">
                                                                <%=GetGlobalResourceObject("ProposalForm", "GivenName")%>:</div>
                                                            <div class="left">
                                                                <asp:TextBox ID="txtDriverGivenName2" MaxLength="50" runat="server" size="25"></asp:TextBox>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div class="w56per left">
                                                        <div>
                                                            <div class="w180 left align_right pad_6t pad_7xr">
                                                                <%=GetGlobalResourceObject("ProposalForm", "DriverDOB")%>:</div>
                                                            <div class="left pad_6t">
                                                                <uc2:usrDate ID="ddlDriverDOB2" ErrorMessage="" runat="server">
                                                                </uc2:usrDate>
                                                            </div>
                                                        </div>
                                                        <div class="h10"></div>
                                                        <div id="div2">
                                                            <div class="w180 left align_right pad_6t pad_7xr">
                                                                <span class="red"></span>
                                                                <%=GetGlobalResourceObject("ProposalForm", "LicenseNumber")%>:</div>
                                                            <div class="left">
                                                                <asp:TextBox ID="txtDrivingLicenseNumber2" MaxLength="50" runat="server" size="25"></asp:TextBox>
                                                            </div>
                                                        </div>
                                                        <div class="clear">
                                                        </div>
                                                    </div>
                                                </div>
                                            </asp:Panel>
                                            <asp:Panel ID="pnlDriver3" runat="server" Width="100%">
                                                <div class="seperator">
                                                </div>
                                                <div>
                                                    <h3>
                                                        <asp:Label ID="lblDriverNo3" runat="server" Text="<%$ Resources:ProposalForm,DriverNo3%>"></asp:Label>
                                                        <asp:Label ID="lblDriverId3" Visible="false" runat="server"></asp:Label></h3>
                                                    <div class="h10">
                                                    </div>
                                                    <div class="w43per left">
                                                        <div>
                                                            <div class="w180 left align_right pad_6t pad_7xr">
                                                                <span class="red">*</span>
                                                                <%=GetGlobalResourceObject("ProposalForm", "Surname")%>:</div>
                                                            <div class="left">
                                                                <asp:TextBox ID="txtDriverSurName3" MaxLength="50" runat="server" size="25"></asp:TextBox>
                                                                <asp:RequiredFieldValidator CssClass="validationErrorControl" ID="rfvDriverSurName3"
                                                                    ValidationGroup="proposal" runat="server" ControlToValidate="txtDriverSurName3"
                                                                    ErrorMessage=""></asp:RequiredFieldValidator>
                                                            </div>
                                                        </div>
                                                        <div class="h10">
                                                        </div>
                                                        <div>
                                                            <div class="w180 left align_right pad_6t pad_7xr">
                                                                <%=GetGlobalResourceObject("ProposalForm", "GivenName")%>:</div>
                                                            <div class="left">
                                                                <asp:TextBox ID="txtDriverGivenName3" MaxLength="50" runat="server" size="25"></asp:TextBox>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div class="w56per left">
                                                        <div>
                                                            <div class="w180 left align_right pad_6t pad_7xr">
                                                                <%=GetGlobalResourceObject("ProposalForm", "DriverDOB")%>:</div>
                                                            <div class="left pad_6t">
                                                                <uc2:usrDate ID="ddlDriverDOB3" ErrorMessage="" runat="server">
                                                                </uc2:usrDate>
                                                            </div>
                                                        </div>
                                                        <div class="h10"></div>
                                                        <div id="div3">
                                                            <div class="w180 left align_right pad_6t pad_7xr">
                                                                <span class="red"></span>
                                                                <%=GetGlobalResourceObject("ProposalForm", "LicenseNumber")%>:</div>
                                                            <div class="left">
                                                                <asp:TextBox ID="txtDrivingLicenseNumber3" MaxLength="50" runat="server" size="25"></asp:TextBox>
                                                            </div>
                                                        </div>
                                                        <div class="clear">
                                                        </div>
                                                    </div>
                                                </div>
                                            </asp:Panel>
                                            <asp:Panel ID="pnlDriver4" runat="server" Width="100%">
                                                <div class="seperator">
                                                </div>
                                                <div>
                                                    <h3>
                                                        <asp:Label ID="lblDriverNo4" runat="server" Text="<%$ Resources:ProposalForm,DriverNo4%>"></asp:Label>
                                                        <asp:Label ID="lblDriverId4" Visible="false" runat="server"></asp:Label></h3>
                                                    <div class="h10">
                                                    </div>
                                                    <div class="w43per left">
                                                        <div>
                                                            <div class="w180 left align_right pad_6t pad_7xr">
                                                                <span class="red">*</span>
                                                                <%=GetGlobalResourceObject("ProposalForm", "Surname")%>:</div>
                                                            <div class="left">
                                                                <asp:TextBox ID="txtDriverSurName4" MaxLength="50" runat="server" size="25"></asp:TextBox>
                                                                <asp:RequiredFieldValidator CssClass="validationErrorControl" ID="rfvDriverSurName4"
                                                                    ValidationGroup="proposal" runat="server" ControlToValidate="txtDriverSurName4"
                                                                    ErrorMessage=""></asp:RequiredFieldValidator>
                                                            </div>
                                                        </div>
                                                        <div class="h10">
                                                        </div>
                                                        <div>
                                                            <div class="w180 left align_right pad_6t pad_7xr">
                                                                <%=GetGlobalResourceObject("ProposalForm", "GivenName")%>:</div>
                                                            <div class="left">
                                                                <asp:TextBox ID="txtDriverGivenName4" MaxLength="50" runat="server" size="25"></asp:TextBox>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div class="w56per left">
                                                        <div>
                                                            <div class="w180 left align_right pad_6t pad_7xr">
                                                                <%=GetGlobalResourceObject("ProposalForm", "DriverDOB")%>:</div>
                                                            <div class="left pad_6t">
                                                                <uc2:usrDate ID="ddlDriverDOB4" ErrorMessage="" runat="server">
                                                                </uc2:usrDate>
                                                            </div>
                                                        </div>
                                                        <div class="h10"></div>
                                                        <div id="div6">
                                                            <div class="w180 left align_right pad_6t pad_7xr">
                                                                <span class="red"></span>
                                                                <%=GetGlobalResourceObject("ProposalForm", "LicenseNumber")%>:</div>
                                                            <div class="left">
                                                                <asp:TextBox ID="txtDrivingLicenseNumber4" MaxLength="50" runat="server" size="25"></asp:TextBox>
                                                            </div>
                                                        </div>
                                                        <div class="clear">
                                                        </div>
                                                    </div>
                                                </div>
                                            </asp:Panel>
                                            <asp:Panel ID="pnlDriver5" runat="server" Width="100%">
                                                <div class="seperator">
                                                </div>
                                                <div>
                                                    <h3>
                                                        <asp:Label ID="lblDriverNo5" runat="server" Text="<%$ Resources:ProposalForm,DriverNo5%>"></asp:Label>
                                                        <asp:Label ID="lblDriverId5" Visible="false" runat="server"></asp:Label></h3>
                                                    <div class="h10">
                                                    </div>
                                                    <div class="w43per left">
                                                        <div>
                                                            <div class="w180 left align_right pad_6t pad_7xr">
                                                                <span class="red">*</span>
                                                                <%=GetGlobalResourceObject("ProposalForm", "Surname")%>:</div>
                                                            <div class="left">
                                                                <asp:TextBox ID="txtDriverSurName5" MaxLength="50" runat="server" size="25"></asp:TextBox>
                                                                <asp:RequiredFieldValidator CssClass="validationErrorControl" ID="rfvDriverSurName5"
                                                                    ValidationGroup="proposal" runat="server" ControlToValidate="txtDriverSurName5"
                                                                    ErrorMessage=""></asp:RequiredFieldValidator>
                                                            </div>
                                                        </div>
                                                        <div class="h10">
                                                        </div>
                                                        <div>
                                                            <div class="w180 left align_right pad_6t pad_7xr">
                                                                <%=GetGlobalResourceObject("ProposalForm", "GivenName")%>:</div>
                                                            <div class="left">
                                                                <asp:TextBox ID="txtDriverGivenName5" MaxLength="50" runat="server" size="25"></asp:TextBox>
                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div class="w56per left">
                                                        <div>
                                                            <div class="w180 left align_right pad_6t pad_7xr">
                                                                <%=GetGlobalResourceObject("ProposalForm", "DriverDOB")%>:</div>
                                                            <div class="left pad_6t">
                                                                <uc2:usrDate ID="ddlDriverDOB5" ErrorMessage="" runat="server">
                                                                </uc2:usrDate>
                                                            </div>
                                                        </div>
                                                        <div class="h10"></div>
                                                        <div id="div7">
                                                            <div class="w180 left align_right pad_6t pad_7xr">
                                                                <span class="red"></span>
                                                                <%=GetGlobalResourceObject("ProposalForm", "LicenseNumber")%>:</div>
                                                            <div class="left">
                                                                <asp:TextBox ID="txtDrivingLicenseNumber5" MaxLength="50" runat="server" size="25"></asp:TextBox>
                                                            </div>
                                                        </div>
                                                        <div class="clear">
                                                        </div>
                                                    </div>
                                                </div>
                                            </asp:Panel>
                                        </div>
                                        <div class="bottom">
                                        </div>
                                    </div>
                                    <div class="seperator">
                                    </div>
                                </asp:Panel>
                                <script type="text/javascript">
                                    IncreaseProgress(50);
                                </script>
                                <script type="text/javascript">
                                    IncreaseProgress(75);
                                </script>
                                
                                <div class="hilite"  id="divPaymentMode">
                                    <div class="top">
                                    </div>
                                    <div class="body_in pad_15x">
                                        <h1>
                                            <%=GetGlobalResourceObject("ProposalForm", "PaymentMode")%></h1>
                                        <div class="seperator">
                                        </div>
                                        <div id="divTotalPremium">
                                            <div class="w180 left align_right pad_7xr ">
                                                <%=GetGlobalResourceObject("ProposalForm", "TotalPremium")%>:</div>
                                            <div class="left" id="divPremiumWCTPL">
                                                <strong>
                                                    <asp:Label ID="lblTotalPremiumPlusCtpl" runat="server"></asp:Label></strong>
                                            </div>
                                            <div class="left" id="divPremiumWOCTPL">
                                                <strong>
                                                    <asp:Label ID="lblTotalPremium" runat="server"></asp:Label></strong>
                                            </div>
                                        </div>
                                        <div class="seperator">
                                        </div>
                                        <div id="divMonthlyPremium">
                                            <div class="w180 left align_right pad_7xr ">
                                                <%=GetGlobalResourceObject("ProposalForm", "Premium")%>:</div>
                                            <div class="left" id="divPremiumMonthlyWCTPL">
                                                <strong>
                                                    <asp:Label ID="lblPremiumMonthlyPlusCtpl" runat="server"></asp:Label></strong>
                                            </div>
                                            <div class="left" id="divPremiumMonthlyWOCTPL">
                                                <strong>
                                                    <asp:Label ID="lblPremiumMonthly" runat="server"></asp:Label></strong>
                                            </div>
                                        </div>
                                        
                                        <div class="seperator">
                                        </div>
                                        <div>
                                            <div id="divCardType">
                                                <div class="w180 left align_right pad_7xr">
                                                    <span class="red">*</span>
                                                    <%=GetGlobalResourceObject("ProposalForm","PaymentType") %>:</div>
                                                <div class="left">
                                                    <span id="divBankIn">
                                                        <asp:RadioButton onclick="ValCheckPaymentType();CheckPaymentTypeValidationCss();ShowHideDiv('divBankInMessage',true);"
                                                            ID="rdoBankIn" runat="server" GroupName="paymenttype" />
                                                        &nbsp;<asp:Label ID="lblBankIn" runat="server" Text="<%$ Resources:ProposalForm,BankIn%>"></asp:Label>
                                                    </span><span>&nbsp;&nbsp;</span> <span id="divCreditCard">
                                                        <asp:RadioButton onclick="ValCheckPaymentType();CheckPaymentTypeValidationCss();ShowHideDiv('divBankInMessage',false);"
                                                            ID="rdoCreditCard" runat="server" GroupName="paymenttype" />
                                                        &nbsp;<asp:Label ID="lblCreditCard" runat="server" Text="<%$ Resources:ProposalForm,CreditCard%>"></asp:Label>
                                                    </span><span style="display: none">
                                                        <asp:TextBox ID="txtPaymentType" runat="server"></asp:TextBox></span>
                                                    <asp:RequiredFieldValidator ID="rfvPaymentType" runat="server" CssClass="validationErrorControl"
                                                        Display="Dynamic" ErrorMessage="" ControlToValidate="txtPaymentType" ValidationGroup="proposal"
                                                        Text=""></asp:RequiredFieldValidator>
                                                    <div class="clear">
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="seperator">
                                        </div>
                                        <div>
                                            <div style="clear: both;">
                                            </div>
                                            <div class="w180 left align_right pad_6t pad_7xr">
                                            </div>
                                            <div class="left">
                                                <div id="divBankInMessage">
                                                    <div class="seperator">
                                                    </div>
                                                    <%=GetGlobalResourceObject("ProposalForm","BankInMsg1") %><br />
                                                    <br />
                                                    &bull;<%=GetGlobalResourceObject("ProposalForm","BankInMsg2") %>
                                                    &nbsp;<b><%=GetGlobalResourceObject("ProposalForm","BankInMsg3") %></b><br />
                                                    <br />
                                                    <asp:Radiobuttonlist id="rdoBankInOption" runat="server">
                                                        <asp:listitem Text="<%$Resources:ProposalForm,BankInBKK%>" Value ="BKK" Selected ="True"></asp:listitem>
                                                        <asp:listitem Text="<%$Resources:ProposalForm,BankInKBank%>" Value ="KBANK"></asp:listitem>
                                                        <asp:listitem Text="<%$Resources:ProposalForm,BankInKTB%>" Value ="KTB"></asp:listitem>
                                                        <asp:listitem Text="<%$Resources:ProposalForm,BankInSCB%>" Value ="SCB"></asp:listitem>
                                                    </asp:Radiobuttonlist>                                                    
                                                    <%--<%=GetGlobalResourceObject("ProposalForm","BankInMsg4") %><br />--%>
                                                    <br />
                                                    <%=GetGlobalResourceObject("ProposalForm","BankInMsg5") %><br />
                                                    <%--&bull;<%=GetGlobalResourceObject("ProposalForm","BankInMsg6") %><br />--%>
                                                    &bull;<%=GetGlobalResourceObject("ProposalForm","BankInMsg7") %><br />
                                                    &bull;<%=GetGlobalResourceObject("ProposalForm","BankInMsg8") %><br />
                                                    &bull;<%=GetGlobalResourceObject("ProposalForm","BankInMsg9") %><br />
                                                    <div class="seperator">
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="bottom">
                                    </div>
                                </div>
                                <div id="divDisclaimerTab" style="display:none" runat="server">
                                    <div class="seperator"></div>
                                    <div style="float:left; width: 3%" id="divDisclaimer">&nbsp;&nbsp;<asp:CheckBox runat="server" ID="chkDisclaimer" onclick="RemoveValidateCss(this);" ValidationGroup="proposal" /></div>
                                    <div style="float:left; width: 94%"><asp:Label runat="server" ID="lblDisclaimerMessage" Font-Size="16px" ForeColor="White" Font-Bold="true" Text="<%$Resources:ProposalForm,Disclaimer%>"></asp:Label>
                                    </div>
                                    <div class="seperator"></div>
                                    <div><asp:CustomValidator id="cust_Disclaimer" runat="server" ErrorMessage="" ValidationGroup="proposal" ClientValidationFunction="ValidateCheckBox"><%=GetGlobalResourceObject("ProposalForm", "MessageDisclaimer")%></asp:CustomValidator></div>
                                </div>
                                <div class="seperator">
                                </div>
                                <div class="center align_center" id="divFormButtons">
                                       <asp:ImageButton ID="ibtSubmit" runat="server" ValidationGroup="proposal" ImageUrl="<%$Resources:ImageResource,SubmitProposalButton%>" 
                                        OnClientClick="LoadValidationErrorCss();CheckOptionValidationCss();"
                                        class="button" OnClick="ibtSubmit_Click"></asp:ImageButton>
                                    <asp:Label ID="lblMessage" runat="server" ForeColor="Red"></asp:Label>
                                    <div class="note">
                                        <img src="/images/forms_proposal/icon/warning.png" width="21" height="18" alt="Note"
                                            style="vertical-align: middle; padding-bottom: 3px" />
                                       <asp:Label runat="server" ID="lblnote" Text="<%$Resources:CarInsuranceProposal,ProposalNote%>"></asp:Label> 
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="bottom">
                        </div>
                    </div>
                </div>
                <div class="seperator">
                </div>
            </div>
        </div>
    </div>

    <script type="text/javascript">
        IncreaseProgress(90);
    </script>

    <div id="footer">
        <div id="nav_bottom" class="pad_7t">
            <div class="left pad_8yr">
                <asp:HyperLink ID="hplBottomBack" runat="server" onclick="if(confirm('Are you sure to go back?')){ history.back();return false;}"  ImageUrl="<%$Resources:ImageResource,BackProposalButton%>"></asp:HyperLink>
                <asp:HyperLink ID="hplBottomCancel" runat="server" onclick="return confirm('Are you sure to Cancel?');"
                    NavigateUrl="~/user/logout.aspx" ImageUrl="<%$Resources:ImageResource,CancelProposalButton%>"></asp:HyperLink><%--NavigateUrl="../quote-results.aspx"--%>
            </div>
            <div class="right pad_8yr">
               <asp:HyperLink ID="HyperLink2" runat="server" onclick="window.print()"  ImageUrl="<%$Resources:ImageResource,PrintProposalButton%>"></asp:HyperLink>
            </div>
        </div>
    </div>

    <script type="text/javascript">

        var prm = Sys.WebForms.PageRequestManager.getInstance();
        prm.add_initializeRequest(InitializeRequest);
        prm.add_endRequest(EndRequest);
        var postBackElement;
        function InitializeRequest(sender, args) {
            if (prm.get_isInAsyncPostBack())
                args.set_cancel(true);
            postBackElement = args.get_postBackElement();

        }

        function OnOffUpdateProgress(onOff) {
        }

        function EndRequest(sender, args) {
        }


        function ShowHideDiv(divName, varOnOff) {
            if (varOnOff) {
                document.getElementById(divName).style.display = "";
            }
            else {
                document.getElementById(divName).style.display = "none";
            }
        }

        function CheckOptionValidationCss() {
            CheckPaymentTypeValidationCss();
            CheckedChanged();
        }

        function CheckValidationCss(divYes, divNo, ctrlText, valCtrl) {
            ShowValidationEffectOption(divYes, divNo, ctrlText, valCtrl);
            return true;
        }

        function CheckPaymentTypeValidationCss() {
            CheckValidationCss('divBankIn', 'divCreditCard', '<%=txtPaymentType.ClientID%>', '<%=rfvPaymentType.ClientID%>');
        }

        function ValCheckPaymentType(varOnOff) {
            var txtCtrl = document.getElementById("<%=txtPaymentType.ClientID%>");
            txtCtrl.value = "1";
        }

        function CheckAll() {
        }

        function showhide(el) {

            el = document.getElementById(el);
            el.style.display = (el.style.display == "none") ? "block" : "none";
        }

        window.onload = function() {
            showhide('divPremiumMonthlyWCTPL');
            showhide('divPremiumMonthlyWOCTPL');
            showhide('divBankInMessage');
            onloading();
        }

        function onloading() {
            CheckedChanged();
            ShowHideDiv('divPremiumMonthlyWCTPL', false);
            ShowHideDiv('divPremiumMonthlyWOCTPL', true);
            if (document.getElementById('<%=rdoBankIn.ClientID%>').checked == true) {
                ShowHideDiv('divBankInMessage', true);
            }
            else if (document.getElementById('<%=rdoCreditCard.ClientID%>').checked == true) {
                ShowHideDiv('divBankInMessage', false);
            }
            else {
                ShowHideDiv('divBankInMessage', false);
            }

        }

        function restrictToNumbers(e) {
            if ([e.keyCode || e.which] == 8 || [e.keyCode || e.which] == 37 || [e.keyCode || e.which] == 9 || [e.keyCode || e.which] == 39) //this is to allow backspace
                return true;

            if ([e.keyCode || e.which] < 48 || [e.keyCode || e.which] > 57)
                e.preventDefault ? e.preventDefault() : e.returnValue = false;
        }

    </script>

    <script type="text/javascript">
        function CheckedChanged() {
            var ctrlCMI = document.getElementById('<%=txtIsIncludeCMI.ClientID%>');
            if (ctrlCMI.value == '0') {
                ShowHideDiv('divBuyCTPLCheck', true);
                var ctrlTxt = document.getElementById('<%=txtBuyCTPL.ClientID%>');
                var ctrlY = document.getElementById('<%=chkBuyCTPL.ClientID%>');
                if (ctrlY.checked == true) {
                    ShowHideDiv('divBuyCTPL', true);
                    ctrlTxt.value = '1';
                    ShowHideDiv('divPremiumWCTPL', true);
                    ShowHideDiv('divPremiumWOCTPL', false);
                    ShowHideDiv('divMonthlyPremium', false);
                    ShowHideDiv('divPremiumMonthlyWCTPL', false);
                    ShowHideDiv('divPremiumMonthlyWOCTPL', false);
                }
                else {
                    ShowHideDiv('divBuyCTPL', false);
                    ctrlTxt.value = '0';
                    ShowHideDiv('divPremiumWCTPL', false);
                    ShowHideDiv('divPremiumWOCTPL', true);
                    ShowHideDiv('divMonthlyPremium', false);
                    ShowHideDiv('divPremiumMonthlyWCTPL', false);
                    ShowHideDiv('divPremiumMonthlyWOCTPL', false);
                }
            }
            else {
                ShowHideDiv('divBuyCTPLCheck', false);
                ShowHideDiv('divBuyCTPL', false);
                ShowHideDiv('divPremiumWCTPL', false);
                ShowHideDiv('divPremiumWOCTPL', true);
                ShowHideDiv('divMonthlyPremium', false);
                ShowHideDiv('divPremiumMonthlyWCTPL', false);
                ShowHideDiv('divPremiumMonthlyWOCTPL', false);
            }
        }

        function ValidateCheckBox(source, args) {
            var chkListModules = document.getElementById('<%= chkDisclaimer.ClientID %>');
            var divDis = document.getElementById('divDisclaimer');
            var flag = divDis.className.indexOf("validationError") != -1;
            if (chkListModules.checked) {
                args.IsValid = true;
                if (flag) {
                    divDis.className = divDis.className.replace(new RegExp("\\b" + "validationError" + "\\b", "i"), "").replace(/^\s+|\s(?=\s+)|\s+$/m, "");
                }
            }
            else {
                args.IsValid = false;
                if (!flag) {
                    divDis.className += (divDis.className.length != 0 ? " " : "") + "validationError";
                }
            }
        }

        function RemoveValidateCss(obj) {
            var divDis = document.getElementById('divDisclaimer');
            var flag = divDis.className.indexOf("validationError") != -1;
            if (obj.checked) {
                if (flag) {
                    divDis.className = divDis.className.replace(new RegExp("\\b" + "validationError" + "\\b", "i"), "").replace(/^\s+|\s(?=\s+)|\s+$/m, "");
                }
            }
            else {
                if (!flag) {
                    divDis.className += (divDis.className.length != 0 ? " " : "") + "validationError";
                }
            }
        }
           
    </script>
    
    <script type="text/javascript">
        function SubmitConfirm() {
            var _retVal = false;
            if (Page_ClientValidate('proposal')) {
                _retVal = confirm('By pressing the submit button, you authorise CompareXpress to send your personal information to the partipating merchant of your choice. You therefore exempt CompareXpress from any liability relating to the sharing of this information with our participating merchant.');
            }
            return _retVal;
        }
        IncreaseProgress(100);
        HideLoading();
    </script>

</asp:Content>

